package com.zr.enums;

import lombok.Getter;

@Getter
public enum CoreExceptionEnum {
    /**
     * 枚举项目的返回status和message  : 异常类型自行增删
     */
    INVALID_FILE_TYPE(400, "无效的文件类型！"),
    INVALID_PARAM_ERROR(400, "无效的请求参数！"),
    DATA_TRANSFER_ERROR(500, "数据转换异常！"),
    INVALID_PHONE_NUMBER(400, "无效的手机号码"),
    INVALID_USERNAME_PASSWORD(400, "无效的用户名和密码！"),
    INSERT_OPERATIONS_FAIL(400, "批量新增失败！"),
    INSERT_OPERATION_FAIL(500, "批量新增失败！"),
    DATA_ALREADY_EXISTS(400,"员工已存在"),
    UNAUTHORIZED(400,"权限不足"),
    NOT_LOGIN_IN(400,"用户未登录"),
    FILE_UPLOAD_ERROR(500,"上传失败"),
    FILE_SAVE_FILE(500,"文件信息保存失败");
    private int status;
    private String message;

    CoreExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}

